<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="/common/taglibs.jsp" %>
<html>
<head>
<title></title>
<%@include file="/common/extjs.jsp" %>
<%@include file="/common/meta.jsp"%>
<%@include file="/common/validator.jsp"%>
<script type="text/javascript" src="${ctx}/scripts/fckeditor/fckeditor.js"></script>

<script type="text/javascript">
  //文本编辑组件
  function preFckEditor(){
	var fckEditor = new FCKeditor( 'content' ) ;
    fckEditor.BasePath = "${ctx}/scripts/fckeditor/";
    fckEditor.ToolbarSet = 'Default';
    fckEditor.Height = 400;
    fckEditor.Width = 700;
    fckEditor.ReplaceTextarea();
  }
</script>
</head>
<body onload="preFckEditor()">
<div class="x-panel">
    <div class="x-panel-header">案件信息管理</div>

	<div><%@ include file="/common/messages.jsp"%></div> 
    <div align="center" style="width: 100%">
	<s:form id="casesForm" action="save.do" method="post" theme="simple" validate="true" enctype="multipart/form-data">
	<s:hidden name="model.id"/>
	<fieldset style="width: 95%; padding:10px 10px 10px 10px;" >
    	<legend>编辑案件信息</legend>
	    <table width="850" align="left" border="0">
          <tr>
             <td align="right" width="100">标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题：</td>
             <td align="left" colspan="5">
             	<s:textfield id="title" name="model.title" cssStyle="width:633px" cssClass="required" /><font color="red">&nbsp;*</font>
             </td>
          </tr>  
          <tr>
             <td align="right" width="100">所属区县：</td>
             <td align="left" width="120">
                <s:select id="region" list="%{regionMap}" name="model.region" cssStyle="width:110px;" cssClass="required"/>
                <font color="red">*</font>
             </td>

             <td align="right" width="70">
             	案件类别：
             </td>
             <td align="left" width="170">
                <s:select id="caseType" list="%{caseTypeMap}" name="model.caseType" headerKey="" headerValue="--请选择--"
	              cssStyle="width:100px;" cssClass="required"/>
	            <font color="red">*</font>
             </td>
             <td align="right" width="50">
             	负责人：
             </td>
             <td align="left" width="170">
             	<s:textfield id="inputer" name="model.inputer" cssStyle="width:100px" cssClass="required" />
             	<font color="red">*</font>             
             </td>
          </tr>                                                                                       
		  <tr>
			<td align="right">案件内容：</td>
			<td align="left" colspan="5">
				<textarea id="content" name="model.content" cols="65" rows="4" >${model.content}</textarea>
			</td>
		  </tr> 
        </table> 
    </fieldset>
    <table width="600px" style="margin-bottom:10px;">
		<tr>
			<td style="text-align:center;">
				<s:submit value="保存" cssClass="button" />&nbsp;&nbsp;
				<s:reset value="重置" cssClass="button"/>
		   </td>
		</tr>
	</table>
	</s:form>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
	$("#casesForm").validate();
});
</script>
</body>
</html>